home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem * INSTALL.BAT (for CIMplicity)
- rem * This batch file: (1) makes a directory named \%3 on %2:, (2) copies
- rem * files from %1: to that directory, then (3) expands CIM1 and CIM2.
- cls
- if "%1" == "?" goto USAGE
- if "%1" == "" A:INSTALL A C CIM
- if "%3" == "" goto USAGE
- if "%3" == "\CIM" goto USAGE
- if "%3" == "\CIM2" goto USAGE
- if "%1" == "a" goto AOK
- if "%1" == "b" goto AOK
- if "%1" == "A" goto AOK
- if "%1" == "B" goto AOK
- goto USAGE
- :AOK
- if "%2" == "c" goto COK
- if "%2" == "d" goto COK
- if "%2" == "e" goto COK
- if "%2" == "f" goto COK
- if "%2" == "C" goto COK
- if "%2" == "D" goto COK
- if "%2" == "E" goto COK
- if "%2" == "F" goto COK
- goto USAGE
- :COK
- if "%4" == "CONT" goto CONTIN
- echo ------------------------------- Verify --------------------------------
- echo ( Note: For usage instructions for this procedure, type: A:INSTALL ? )
- echo This program is about to install CIMplicity from the floppy disk in the
- echo %1: drive onto the fixed disk in a directory named %2:\%3. The directory
- echo will be created if it does not already exist. Requirements are:
- echo EGA or VGA card and compatible color monitor
- echo 640K or more of main memory
- echo 3 MB of free disk space
- echo A standard mouse (or tablet with a mouse-type driver)
- echo If it is okay to continue with the installation, hit the [Enter] key...
- echo To terminate the installation process, hold down [Ctrl] and hit [C]...
- pause
- cls
- md %2:\%3 >NUL
- cls
- echo --------- Creating Directory, Copying INSTALL to it, Chaining ---------
- cd %2:\%3 >NUL
- copy %1:INSTALL.BAT %2:\%3 >NUL
- if NOT EXIST %2:\%3\INSTALL.BAT goto BOMBOUT
- if "%4" == "" %2:\%3\INSTALL %1 %2 %3 CONT >NUL
- %4 %2:\%3\INSTALL %1 %2 %3 CONT >NUL
- cls
- echo --------------------------- DOS Won't Chain ---------------------------
- echo The INSTALL program is having trouble chaining to itself, after having
- echo copied itself to the destination directory. (%2:\%3) This may be due
- echo to the use of a DOS variant such as DR DOS. If this is the case, then
- echo issue the command line differently:
- echo a:INSTALL a c cim call
- echo Where:
- echo drive 'a' the the floppy drive containing the files...
- echo drive 'c' is the fixed disk to be installed onto...
- echo directory 'cim' is the name of the directory to be created.
- echo 'call' is the OS command to run a batch file from within a batch file.
- goto DONE
- :BOMBOUT
- cls
- echo -------------------------- Error In Chaining --------------------------
- goto DONE
- rem ======================= Installation Begins Here =======================
- :NEXTDISK
- echo -------------------- Insert Next Disk, Hit [Enter] --------------------
- pause
- :CONTIN
- cls
- echo -------------------- Copying Files, Please Wait... --------------------
- copy %1:*.* %2:\%3 >NUL
- if NOT EXIST %1:LAST.DSK goto NEXTDISK
- %2: >NUL
- cls
- echo ------------------- Expanding Files, Please Wait... -------------------
- if EXIST %2:\%3\CIM.EXE del %2:\%3\CIM.EXE >NUL
- CIM2 < YYYYYYYY >NUL
- del %2:\%3\CIM2.exe >NUL
- CIM1 < YYYYYYYY >NUL
- del %2:\%3\CIM1.exe >NUL
- if EXIST %2:\%3\CIM.EXE goto OKAY
- cls
- echo ------------------------ Insufficient Disk Space ----------------------
- goto DONE
- :OKAY
- cls
- echo ----------------------------- Installed -------------------------------
- echo 1. CIMplicity is installed in a directory named %2:\%3
- echo 2. To register your software, type REGISTER (You MUST register)
- echo 3. Please review the file README.TXT before going on
- echo 4. Type MANUAL P to print the user's manual on LPT1
- echo 5. After authorization, you may run CIMplicity by typing CIM
- echo 6. System requirements: EGA 640x350 16 col, Mouse, and 640K memory
- echo ----------------------------- Thank You -------------------------------
- pause
- goto DONE
- :USAGE
- echo To install CIMplicity, type:
- echo a:INSTALL a c cim
- echo Where:
- echo drive 'a' the the floppy drive containing the files...
- echo drive 'c' is the fixed disk to be installed onto...
- echo directory 'cim' is the name of the directory to be created.
- echo Default:
- echo A:INSTALL A C CIM
- echo ----------------------------- Try Again -------------------------------
- :DONE